<?php 

abstract class Car
{
    protected $brand;

    public function __construct($brand)
    {
        $this->brand = $brand;
    }
    abstract public function drive();
}

class LynkCo01 extends Car
{
    public function __construct()
    {
        echo "启动领克01汽车" . '<br/>';
        parent::__construct($this->brand);
    }

    public function drive()
    {
        echo "启动{$this->brand}汽车" . '<br/>';
    }
}

class LynkCo03 extends Car
{
    function __construct()
    {
        $this->brand = '领克03';
        parent::__construct($this->brand);
    }

    public function drive()
    {
        echo "提示：手动挡需要踩离合器";
        echo "启动{$this->brand}汽车" . '<br/>';
    }
}

class TestCar
{
    public function testDrive(Car $car)
    {
        $car->drive();
    }
}

$lynkCo01 = new LynkCo01();
$lynkCo03 = new LynkCo03();

$testCar = new TestCar();
$testCar->testDrive($lynkCo01);
echo "=====================<br/>";
$testCar->testDrive($lynkCo03);
